<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>

	<body>
		<style>
			body {
				height: 10000px;
			}

			.box {
				width: 200px;
				height: 400px;
				border: 1px solid red;
				overflow: auto;
				/* 阻止滚动传播 兼容不好 */
				overscroll-behavior: contain;
			}

			.content {
				height: 10000px;
			}
		</style>
		<div class="box">
			<div class="content"></div>
		</div>
	</body>
</html>
